package com.wowo.hello;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanDemoApp {

    public static void main(String[] args){
        //获得容器对象
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("hello/hello.xml");

        BeanDemo beanDemo = applicationContext.getBean(BeanDemo.class);
        System.out.println(beanDemo.hello());
    }
}
